from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
	(r'^$', 'labmin.webapp.views.main'),
	(r'^login$', 'labmin.webapp.views.login'),
	(r'^logout$', 'labmin.webapp.views.logout'),

    (r'^show_student/(?P<student_pk>\d+)$', 'labmin.webapp.views.show_student'),
	(r'^students_list$', 'labmin.webapp.views.students_list'),
	(r'^student_form$', 'labmin.webapp.views.student_form'),
	(r'^student_form/(?P<student_pk>\d+)$', 'labmin.webapp.views.student_form'),
	(r'^delete_students$', 'labmin.webapp.views.delete_students'),
	
	(r'^student_groups_list$', 'labmin.webapp.views.student_groups_list'),
	(r'^student_group_form$', 'labmin.webapp.views.student_group_form'),
	(r'^student_group_form/(?P<student_group_pk>\d+)$', 'labmin.webapp.views.student_group_form'),
	(r'^delete_student_group/(?P<student_group_pk>\d+)$', 'labmin.webapp.views.delete_student_group'),
	
	(r'^admins_list$', 'labmin.webapp.views.admins_list'),
    (r'^admin_form$', 'labmin.webapp.views.admin_form'),
    (r'^admin_form/(?P<admin_pk>\d+)$', 'labmin.webapp.views.admin_form'),
	(r'^delete_admin/(?P<admin_pk>\d+)$', 'labmin.webapp.views.delete_admin'),
	(r'^show_admin/(?P<admin_pk>\d+)$', 'labmin.webapp.views.show_admin'),

	(r'^services_list$', 'labmin.webapp.views.services_list'),
    (r'^service_form$', 'labmin.webapp.views.service_form'),
    (r'^service_form/(?P<service_pk>\d+)$', 'labmin.webapp.views.service_form'),
	(r'^delete_service/(?P<service_pk>\d+)$', 'labmin.webapp.views.delete_service'),
    
	(r'^shell$', 'labmin.webapp.views.shell'),
	
	(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'G:/Upload/labmin/html/media/'}),
	
	# Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
	
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
